package com.gzz.demo.pattern.state;

/**
 * 具体状态类 A
 */
public class StateA extends State{

    @Override
    public void Handle(StateContext context) {
        System.out.println("context = Deal With concreateState AAA");
        context.setState(new StateB()); //设置A的下一个状态是B
    }
}